package com.meixiang.entity.services;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author:xiejingwen
 */
public class ServiceDetail {
    /**
     * goodsId : 商品ID
     * goodsImage : 商品图片
     * goodsName : 商品名称
     * goodsStorePrice : 商品价格
     * goodsMarketPrice : 市场价
     * salenum : 卖出件数
     * goodsSubtitle : 副标题
     * goodsBody : 商品描述
     * address : 商家地址
     * phone : 商家电话
     * typeId : 1
     * stepList : [{"stepId":"步骤ID","stepName":"步骤名称","stepSequence":"排序","stepDesc":"步骤描述","stepImage":"图片"}]
     * proList : [{"proId":"1","proName":"产品名称","proDesc":"描述","proImage":"照片","refGoodsId":"对应的商品ID"}]
     * instructionList : [{"instructionName":"适用人群","indexValue":"所有人群"}]
     */

    private String goodsId;
    private String goodsImage;
    private String goodsName;
    private String goodsStorePrice;
    private String goodsMarketPrice;
    private String salenum;
    private String goodsSubtitle;
    private String goodsBody;
    private String address;
    private String phone;
    private String typeId;
    /**
     * stepId : 步骤ID
     * stepName : 步骤名称
     * stepSequence : 排序
     * stepDesc : 步骤描述
     * stepImage : 图片
     */

    private List<StepListBean> stepList;
    /**
     * proId : 1
     * proName : 产品名称
     * proDesc : 描述
     * proImage : 照片
     * refGoodsId : 对应的商品ID
     */

    private List<ProListBean> proList;
    /**
     * instructionName : 适用人群
     * indexValue : 所有人群
     */

    private List<InstructionListBean> instructionList;
    /**
     * serviceTime : 50
     */

    private String serviceTime;
    /**
     * opera : 1为已收藏,2为未收藏
     */

    private String opera;
    /**
     * isMainStore : 0
     */

    private String isMainStore;

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsStorePrice() {
        return goodsStorePrice;
    }

    public void setGoodsStorePrice(String goodsStorePrice) {
        this.goodsStorePrice = goodsStorePrice;
    }

    public String getGoodsMarketPrice() {
        return goodsMarketPrice;
    }

    public void setGoodsMarketPrice(String goodsMarketPrice) {
        this.goodsMarketPrice = goodsMarketPrice;
    }

    public String getSalenum() {
        return salenum;
    }

    public void setSalenum(String salenum) {
        this.salenum = salenum;
    }

    public String getGoodsSubtitle() {
        return goodsSubtitle;
    }

    public void setGoodsSubtitle(String goodsSubtitle) {
        this.goodsSubtitle = goodsSubtitle;
    }

    public String getGoodsBody() {
        return goodsBody;
    }

    public void setGoodsBody(String goodsBody) {
        this.goodsBody = goodsBody;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public List<StepListBean> getStepList() {
        return stepList;
    }

    public void setStepList(List<StepListBean> stepList) {
        this.stepList = stepList;
    }

    public List<ProListBean> getProList() {
        return proList;
    }

    public void setProList(List<ProListBean> proList) {
        this.proList = proList;
    }

    public List<InstructionListBean> getInstructionList() {
        return instructionList;
    }

    public void setInstructionList(List<InstructionListBean> instructionList) {
        this.instructionList = instructionList;
    }

    public String getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(String serviceTime) {
        this.serviceTime = serviceTime;
    }

    public String getOpera() {
        return opera;
    }

    public void setOpera(String opera) {
        this.opera = opera;
    }

    public String getIsMainStore() {
        return isMainStore;
    }

    public void setIsMainStore(String isMainStore) {
        this.isMainStore = isMainStore;
    }

    public static class StepListBean implements Parcelable {
        private String stepId;
        private String stepName;
        private String stepSequence;
        private String stepDesc;
        private String stepImage;

        public String getStepId() {
            return stepId;
        }

        public void setStepId(String stepId) {
            this.stepId = stepId;
        }

        public String getStepName() {
            return stepName;
        }

        public void setStepName(String stepName) {
            this.stepName = stepName;
        }

        public String getStepSequence() {
            return stepSequence;
        }

        public void setStepSequence(String stepSequence) {
            this.stepSequence = stepSequence;
        }

        public String getStepDesc() {
            return stepDesc;
        }

        public void setStepDesc(String stepDesc) {
            this.stepDesc = stepDesc;
        }

        public String getStepImage() {
            return stepImage;
        }

        public void setStepImage(String stepImage) {
            this.stepImage = stepImage;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.stepId);
            dest.writeString(this.stepName);
            dest.writeString(this.stepSequence);
            dest.writeString(this.stepDesc);
            dest.writeString(this.stepImage);
        }

        public StepListBean() {
        }

        protected StepListBean(Parcel in) {
            this.stepId = in.readString();
            this.stepName = in.readString();
            this.stepSequence = in.readString();
            this.stepDesc = in.readString();
            this.stepImage = in.readString();
        }

        public static final Creator<StepListBean> CREATOR = new Creator<StepListBean>() {
            @Override
            public StepListBean createFromParcel(Parcel source) {
                return new StepListBean(source);
            }

            @Override
            public StepListBean[] newArray(int size) {
                return new StepListBean[size];
            }
        };
    }

    public static class ProListBean {
        private String proId;
        private String proName;
        private String proDesc;
        private String proImage;
        private String refGoodsId;

        public String getProId() {
            return proId;
        }

        public void setProId(String proId) {
            this.proId = proId;
        }

        public String getProName() {
            return proName;
        }

        public void setProName(String proName) {
            this.proName = proName;
        }

        public String getProDesc() {
            return proDesc;
        }

        public void setProDesc(String proDesc) {
            this.proDesc = proDesc;
        }

        public String getProImage() {
            return proImage;
        }

        public void setProImage(String proImage) {
            this.proImage = proImage;
        }

        public String getRefGoodsId() {
            return refGoodsId;
        }

        public void setRefGoodsId(String refGoodsId) {
            this.refGoodsId = refGoodsId;
        }
    }

    public static class InstructionListBean {
        private String instructionName;
        private String indexValue;

        public String getInstructionName() {
            return instructionName;
        }

        public void setInstructionName(String instructionName) {
            this.instructionName = instructionName;
        }

        public String getIndexValue() {
            return indexValue;
        }

        public void setIndexValue(String indexValue) {
            this.indexValue = indexValue;
        }
    }

    @Override
    public String toString() {
        return "ServiceDetail{" +
                "goodsId='" + goodsId + '\'' +
                ", goodsImage='" + goodsImage + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsStorePrice='" + goodsStorePrice + '\'' +
                ", goodsMarketPrice='" + goodsMarketPrice + '\'' +
                ", salenum='" + salenum + '\'' +
                ", goodsSubtitle='" + goodsSubtitle + '\'' +
                ", goodsBody='" + goodsBody + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", typeId='" + typeId + '\'' +
                ", stepList=" + stepList +
                ", proList=" + proList +
                ", instructionList=" + instructionList +
                ", serviceTime='" + serviceTime + '\'' +
                ", opera='" + opera + '\'' +
                '}';
    }
}
